package com.rong.maven01demo.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_user")
public class User {
    private String sid;
    private String sname;
    private String nage;
    private String username;
    private String password;

    // 告诉mybatisplus数据库表中没有这个字段
    @TableField(exist = false)
    private List<Role> roles;
}
